package com.example;

import com.example.service.SpringSecuirtyUserService;
import javafx.application.Application;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.Bean;

@SpringBootApplication(exclude = { SecurityAutoConfiguration.class })
public class BackendApplication {
    public static void main(String[] args) {
        SpringApplication.run(BackendApplication.class,args);
    }
    @Bean
    SpringSecuirtyUserService SpringSecuirtyUserService() { // 注册UserDetailsService 的bean

        return new SpringSecuirtyUserService();
    }
}
